package com.lvhx.sofa3.server.impl;

import com.alipay.sofa.runtime.api.annotation.SofaService;
import com.alipay.sofa.runtime.api.annotation.SofaServiceBinding;
import com.lvhx.sofa3.server.facade.Test1Reponse;
import com.lvhx.sofa3.server.facade.Test1Request;
import com.lvhx.sofa3.server.facade.Test2Service;
import org.springframework.stereotype.Component;


@SofaService(interfaceType =Test2Service.class, bindings ={@SofaServiceBinding(bindingType ="bolt")})
@Component
public class Test2ServiceImpl implements Test2Service {
    @Override
    public Test1Reponse fun_1(Test1Request request) {
        Test1Reponse reponse = new Test1Reponse();
        reponse.setResponseName(request.getRequestName());
        return reponse;
    }
}
